<script src="/public/library/jquery/jquery-tooltip/jquery.tooltip.js" type="text/javascript"></script>
<link rel="stylesheet" href="/public/library/jquery/jquery-tooltip/jquery.tooltip.css" />

<script type="text/javascript">
	$(function(){
		$('a.tourToolTip').tooltip({ 
            track: true, 
            delay: 0, 
            showURL: false, 
            opacity: 1, 
            fixPNG: true, 
//            showBody: " - ", 
            bodyHandler: function() { 
//        		return $($(this).attr("href")).html();
                txt = $(this).parent().find('span.tipSpan').html();
                return txt; 
   			}, 
            fade: 250, 
            extraClass: "nodePreview", 
   		});
	});
	
</script>

        <div class="sidebar-title">
        <div class="corner-left sidebar-title"></div>
        <div class="content sidebar-title"> Top tours</div>
        <div class="corner-right sidebar-title"></div>  
        </div>
        <div class="sidebar-content">
			        <?foreach($this->inboundTourList as $tour) :?>
                        	<div style="border-bottom:1px dotted gray;">
                                    <b><?=$tour['name'] ?></b>
                                    <br/>
                                   	<?=str_first_words(strip_tags($tour['description']),200)?>
                                   	<a  class="tourToolTip" href="<?=$this->hvnUrl(array('action' => 'view', 'module' => 'tour'),'nocontroller')?>?id=<?= $tour['id']?>">>><?=t(150) ?></a>
                                   	<span style="display:none" class="tipSpan">
                                	<span style="float:left;padding-right:10px">
                                    <img src="/public/themes/prime/images/articles/HCM.jpg"/>
                                    </span>
                                    
                                    <?$a =str_first_words(strip_tags($tour['description']), 200) ;?>
                                    <?if (strlen($a) > 0) :?>
                                    <?=$a ?>
                                    <?else:?>
                                    <?=t(137) ?>
                                    <?endif?>
                                    
                                    <span style="clear:both;display:block;text-align:right;padding-top:5px"> 
                                    <b><?=t(83) ?></b> : <?=$tour['poster_id'] ?>
                                    </span>
                                </span>
                             </div>
        		<?endforeach?>
          
        </div>          
        <div class="sidebar-bottom" style="background:url('/public/themes/prime/images/right/places_by_categories/bottom.gif') no-repeat;background-position: center center"></div>
        <div class="clear"></div>
        <div class="sidebar-bottom"></div>
